package com.wwtech.epp.entity.multi;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.wwtech.epp.db.Friend;
import com.wwtech.epp.entity.AllNode;
import com.wwtech.epp.entity.Groupme;
import com.wwtech.epp.ui.adapter.main.ContactAdapter;

/**
 * Created by hu on 2017/9/11.
 */

public class PersonItem implements MultiItemEntity {

    public AllNode.DataBean node;
    public Friend freind;
    public Groupme.DataBean group;
    public String type;
    public PersonItem(AllNode.DataBean node, String type) {
        this.node = node;
        this.type = type;
    }
    public PersonItem(Groupme.DataBean group, String type) {
        this.group = group;
        this.type = type;
    }
    public PersonItem(Friend freind, String type) {
        this.freind = freind;
        this.type = type;
    }

    public PersonItem() {
//        this.age = age;
//        this.name = name;
    }

    public String name = "";
    public String age = "";

    @Override
    public int getItemType() {
        return ContactAdapter.TYPE_PERSON;
    }
}
